import 'package:json_annotation/json_annotation.dart';

part 'food_discount.g.dart';

@JsonSerializable(explicitToJson: true)
class FoodDiscount {
  FoodDiscount();

  int id;
  int storeId;
  int userId;
  int discountId;
  int discountRate;
  int commodityId;
  int skuId;
  String ctime;
  String utime;
  String discountName;

  factory FoodDiscount.fromJson(Map<String, dynamic> json) => _$FoodDiscountFromJson(json);

  Map<String, dynamic> toJson() => _$FoodDiscountToJson(this);
}
